<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function myJSfunction(){
		alert('你好，这是我开发的功能');
	}
</script>
</head>
<body>
	<input name="button" value="我定义的js函数" type="button" onClick="myJSfunction()">
</body>
</html>